package com.lawyer.repository;


import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

import com.lawyer.entity.UserLawyers;


@RepositoryRestResource(exported = false)
public interface UserLawyerRepository extends PagingAndSortingRepository<UserLawyers, String> , JpaSpecificationExecutor<UserLawyers> {
	
	@Override
	public List<UserLawyers> findAll();
	
	Page<UserLawyers> findByUserId(String userId,Pageable pageable);
	
	
}
